package com.hao.spring.factoryBean;

import com.hao.spring.Student;
import org.springframework.beans.factory.FactoryBean;

/**
 * TODO
 *
 * @author 97472
 * @version 1.0
 * @date 2021/11/2 14:52
 */
public class MyBean implements FactoryBean<Student> {
//    工厂真正要生成的bean
    public Student getObject() throws Exception {
        Student student = new Student();
        return student;
    }

    public Class<?> getObjectType() {
        return Student.class;
    }
}
